package cn.xinfei.xdecision.common.model.decisionflow;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by maying on 2023/03/05.
 **/
@Data
public class UpdateNodeInfoReqVo {
	@ApiModelProperty(value = "引擎编码", required = true, example = "jcl_001")
	@NotEmpty(message = "引擎编码不能为空")
	private String engineCode;

	@ApiModelProperty(value = "版本id", required = true, example = "1024")
	@NotNull(message = "版本id不能为空")
	private Long versionId;

	@ApiModelProperty(value = "节点id", required = true)
	@NotNull(message = "节点id不能为空")
	private Long nodeId;

	@ApiModelProperty(value = "节点编码", required = true, example = "jcl_20230415000006_9")
	@NotEmpty(message = "节点编码不能为空")
	private String nodeCode;

	@ApiModelProperty(value = "节点类型", required = true, example = "start")
	@NotEmpty(message = "节点类型不能为空")
	private String nodeType;

	@ApiModelProperty(value = "节点名称", required = true, example = "规则集")
	@NotEmpty(message = "节点名称不能为空")
	private String nodeName;

	@ApiModelProperty(value = "节点信息", required = true)
	@NotEmpty(message = "节点信息不能为空")
	private String nodeJson;

}
